package com.rayson.yututu.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Author: rayson
 * Description:
 * Version: 1.0
 * Date: 2024-12-16 20:39
 */
@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {

    SUCCESS(200, "成功"),
    PARAM_ERROR(40000, "参数错误"),
    NOT_LOGIN(40100, "未登录"),
    NO_AUTH(40101, "无权限"),
    OPERATION_ERROR(40102, "操作失败"),
    NOT_FOUND_ERROR(40103, "未发现数据"),
    SYSTEM_ERROR(50000, "系统内部异常");


    private final int code;

    private final String msg;
}
